{% extends "dissemin/skeleton.html" %}

{% load i18n %}
{% load solo_tags %}
{% load static %}
{% load widget_tweaks %}
{% load capture_tags %}

{% block headTitle %}
{% trans "Home" %}
{% endblock %}

{% block extra_head %}
{% include 'statistics/headers.html' %}
{% endblock %}

{% block jsScript %}
{% endblock %}

{% block content %}
<div id="fullPage">
  <div id="welcome">
    <h2>{% trans "Welcome to dissemin" %}</h2>

    <p class="startButton">
    {% blocktrans trimmed %}
    Dissemin detects papers behind pay-walls and invites their authors to
    upload them in one click to an open repository.
    {% endblocktrans %}
    </p>
    
    <form method="get" action="{% url 'search' %}">
        <div class="input-group" id="searchPapersTitle">
            {% render_field search_form.authors class="form-control" %}
            <label class="input-group-btn">
                <button type="submit" class="btn btn-default">{% trans "Search" %}</button>
            </label>
        </div>

    </form>
  </div>

  <div id="siteSummaries">

  <div class="oaPanel left">
    <h2>{% trans "Green open access" %}</h2>

    <div id="statsExplanations">
        <p>
        {% blocktrans trimmed %}
        Many researchers do not use their right to
        make their papers freely available online, in addition
        to the paywalled version offered by traditional publishers.
        {% endblocktrans %}
        </p>

        <p>
        {% blocktrans trimmed %}
        This forces libraries to buy overpriced electronic subscriptions
        to journals, when they can afford them at all.
        {% endblocktrans %}
        </p>
      </div>

    <div id="globalStats">
        {% get_solo 'papers.PaperWorld' as world %}
        {% include "statistics/pie.html" with obj=world stats_counter=1 %}
    </div>

  </div>

  <div class="oaPanel right">

	<h2>{% trans "Open repositories" %}</h2>

    <p>
    {% blocktrans trimmed %}
    Uploading your papers on your own webpage is not enough.
    Such copies are less stable and harder to find than documents
    uploaded to well-indexed repositories.
    {% endblocktrans %}
    </p>

    <p>
    {% blocktrans trimmed %}
    Dissemin searches for copies of your papers in a large collection
    of open repositories and tells you which ones cannot be accessed.
    {% endblocktrans %}
    </p>
  </div>

  </div>

</div>
{% endblock %}
